package com.yuneec.droneservice.protocol.analysis;

public abstract class IMessageReceiver {

    public abstract void handleMessage(Analysis.Message msg);

    public abstract int getMessageId();

    public void recycle() {
    }

    public abstract void catchException(Throwable e);

    public static abstract class IDMessageReceiver extends IMessageReceiver {
        public int msgId;

        public IDMessageReceiver(int id) {
            super();
            this.msgId = id;
        }

    }
}
